Address Property (AddressEntry Object)
The Address
property specifies the messaging address of an address list entry or message
recipient. Read/write.
Syntax
objAddressEntry.Address
Data Type
String
Remarks
The
AddressEntry object s Address property provides a unique string to
identify a message recipient and routing information for messaging systems. The
format of the address string is specific to each messaging system.
The
AddressEntry object s Address and Type properties combine to form
the full address, the complete messaging address that appears in the
Recipient object s Address property. The Recipient object s Address
property uses the following syntax:
TypeValue:AddressValue
The
AddressEntry object s Address property corresponds to the MAPI property
PR_EMAIL_ADDRESS.
Example
' Set up a series of object variables
' Set the Folder and Messages variables; from
Session_Inbox
Set
objFolder = objSession.Inbox
Set
objMessages = objFolder.Messages
' Set the Message object variable; from
Messages_GetFirst()
Set
objOneMsg = objMessages.GetFirst
' Set the Recipients collection variable; from
Message_Recipients()
Set
objRecipColl = objOneMsg.Recipients
' Set the Recipient object variable; from
Recipients_FirstItem()
If 0 =
objRecipColl.Count Then
MsgBox
"No recipients in the list"
Exit
Function
End If
iRecipCollIndex = 1
Set
objOneRecip = objRecipColl.Item(iRecipCollIndex)
' set the AddressEntry object variable; from
Recipient_AddressEntry()
Set
objAddrEntry = objOneRecip.AddressEntry
' from Util_CompareFullAddressParts()
' display the values
strMsg =
"Recipient full address = " & objOneRecip.Address
strMsg =
strMsg & "; AddressEntry type = " & objAddrEntry.Type
strMsg =
strMsg & "; AddressEntry address = " & objAddrEntry.Address
MsgBox
strMsg
See Also
Address Property (Recipient Object)